home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / src / lib / posix / wait.c < prev    next >
C/C++ Source or Header  |  1990-07-21  |  190b  |  11 lines

  1. #include <lib.h>
  2.  
  3. PUBLIC int wait(status)
  4. int *status;
  5. {
  6.   int k;
  7.   k = callm1(MM, WAIT, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
  8.   if (k >= 0 && status != 0) *status = _M.m2_i1;
  9.   return(k);
  10. }
  11.